package com.qiandw.enterprise.credit.service

import java.util.List

import com.qiandw.enterprise.credit.entity.Module

/**
  * Created by Draven on 2018/7/9.
  * Email:hjx@qiandw.com
  */
trait ModuleSrv {

  /**
    * 获取一级目录,包含children
    * @return
    */
  def list1LevelModules(): List[Module]

  def listAllModules(): List[Module]

  def addModule(module: Module): Int

  def removeModule(id: Integer): Int

  def updateModule(module: Module):Int
}
